package com.ask.callabledemo;

public class MyThread extends Thread{
    public MyThread(String name) {
        super(name);
    }

    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            System.out.println(getName()+"@"+i);
        }
    }

    public static void main(String[] args) throws InterruptedException {
        Thread thread = currentThread();
        System.out.println(thread.getName());
        System.out.println("1111");
        thread.sleep(5000);
        System.out.println(22222);


    }
}
